package com.example.workbench.service;

import com.example.workbench.common.api.CommonResult;
import com.example.workbench.common.command.AddCardCommand;
import com.example.workbench.common.command.DelByIdCommand;
import com.example.workbench.common.command.UpdateCardCommand;
import com.example.workbench.entity.DbTaskCard;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 
 * @since 2024-08-03
 */
public interface IDbTaskCardService extends IService<DbTaskCard> {

    List<DbTaskCard> queryCard(DelByIdCommand command);

    void addCard(AddCardCommand command);

    void updateCard(UpdateCardCommand command);

    CommonResult deleteCard(DelByIdCommand command);

    void updateSameLineSort(List<DbTaskCard> list);
}
